<template>
	<div style="background-color: brown;height: 100%;">
		<el-row :gutter="20">
			 <el-col :span="12">
				<h1>欢迎登录vue-demo</h1>
			</el-col>
			 <el-col :span="12">
				<el-button type="primary" style="margin-left: 90%;margin-top: 2%;" @click="logout">退出</el-button>
			 </el-col>
		</el-row>
	</div>

</template>

<script>
export default{
	data(){
		
	},
	methods:{
		logout(){
			debugger
			this.$router.push("/");
		}
	}
}
</script>

<style>

</style>